package com.yunti.business.controller;


import com.yunti.business.service.ITestService;
import com.yunti.business.domain.TestParam;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 对外开放接口
 */
@RestController
@RequestMapping("/openApi")
public class OpenApiController extends BaseController
{
    @Resource
    private ITestService testService;


//    @PreAuthorize("@ss.hasPermi('test:getTestValue')")
    @PostMapping("/getTestValue")
    public TableDataInfo getTestValue(@RequestBody TestParam testParam)
    {

        startPage();
        List<TestParam> list=testService.findList(testParam);
        return getDataTable(list);
    }

}
